<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象扩展</title>

    <script>
        let user = {
            address: "shanghai",
            age: 25,
            car: "yadi",
            id: "1000",
            name: "tuohao"
        }
        let keys = Object.keys(user)

        let values = Object.values(user)

        console.log(keys)
        console.log(values)

        keys.forEach(key => console.log(key + ":**:" + user[key]))

    </script>
</head>
<body>



</body>
</html>